package com.hooper.service;


import com.hooper.common.PageResult;
import com.hooper.model.system.SysRole;
import com.hooper.model.vo.RoleInsertVo;
import com.hooper.model.vo.SysRoleQueryVo;

import java.util.List;

/**
* @author Mind
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2023-03-28 14:40:01
*/
public interface SysRoleService{

    List<SysRole> getAllRoles();

    PageResult<SysRole> pageByConditions(int currentPage, int pageSize, SysRoleQueryVo queryVo);

    void saveRole(RoleInsertVo role);

    void updateRoleById(SysRole newRole);

    void delRoleById(Long id);

    void delBatchByIds(List<Long> ids);

    SysRole getById(Long id);

    void saveBatch(List<RoleInsertVo> list);
}
